package com.douma.tool.db;

import lombok.Getter;

/**
 * Created by haoxijun on 2019/12/9.
 */
@Getter
public enum DbTypeEnum {

    VARCHAR_20("VARCHAR", "20", "外键id"),
    VARCHAR_100("VARCHAR", "100", "一般的String"),
    BIGINT("BIGINT", "20", "主键id"),
    INT_4("INT", "4", "一般的int"),
    INT_10("INT", "10", "长的int"),
    DECIMAL("DECIMAL", "16, 4", "浮点型"),
    DATETIME("DATETIME", "", "日期"),
    TEXT("TEXT", "", "大字符串"),
    ;

    /**
     * 类型
     */
    private String type;
    /**
     * 长度
     */
    private String length;
    /**
     * 备注
     */
    private String remarks;

    DbTypeEnum(String type, String length, String remarks) {
        this.type = type;
        this.length = length;
        this.remarks = remarks;
    }
}
